package com.gym.code.config.admin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gym.code.config.admin.bean.ColumnMappingBean;
import com.gym.code.config.admin.dao.IColumnMappingDao;
import com.gym.code.config.admin.service.IColumnMappingService;

/**
 * 
 * @author xinchun.wang 
   @email: 532002108@qq.com
 * @createTime 2015-4-11 下午4:39:20
 */
@Service
public class ColumnMappingService implements IColumnMappingService{

	@Autowired
	private IColumnMappingDao columnMappingDao;
	@Override
	public int insert(ColumnMappingBean bean) {
		return columnMappingDao.insert(bean);
	}

	@Override
	public ColumnMappingBean query(long id) {
		return columnMappingDao.query(id);
	}

	@Override
	public int update(ColumnMappingBean bean) {
		return columnMappingDao.update(bean);
	}

	@Override
	public List<ColumnMappingBean>  queryByTableId(long tableId) {
		return columnMappingDao.queryByTableId(tableId);
	}

	@Override
	public void insert(List<ColumnMappingBean> list) {
		 columnMappingDao.insert(list);
	}
	
}
